import request from '@/utils/request'

// 租户账号绑定列表
export function list(data) {
    return request({
        url: '/system/dealerBinding/list',
        method: 'get',
        params: data
    })
}

// 租户账号绑定新建
export function add(data) {
    return request({
        url: '/system/dealerBinding/insert',
        method: 'post',
        data: data
    })
}

// 租户账号绑定编辑
export function edit(data) {
    return request({
        url: '/system/dealerBinding/update',
        method: 'post',
        data: data
    })
}

// 租户账号绑定详细信息
export function detail(id) {
    return request({
        url: '/system/dealerBinding/selectOne?id=' + id,
        method: 'get'
    })
}

// 租户账号绑定删除
export function del(id) {
    return request({
        url: '/system/dealerBinding/deleteById?id=' + id,
        method: 'get'
    })
}